import React from 'react';
import RenderRouterView from '../../router/router.view';
import {Props} from '../../router/router.d';
import {NavLink} from 'react-router-dom';

const Main:React.FC<Props> = function({routes}){
    return <div>
        main
        {RenderRouterView(routes)}
        <NavLink to="/main/home">主页</NavLink>
        <NavLink to="/main/my">我的</NavLink>
        <NavLink to="/list">列表</NavLink>
    </div>
}

export default Main